from flask_shop import create_app, db
from flask_migrate import Migrate
from flask_cors import CORS

app = create_app('develop')
CORS(app, supports_credentials=True)    # 解决跨域问题

# 创建同步数据库的对象
Migrate(app, db)

if __name__ == '__main__':
    app.run()
